package com.zh.freechat.common.resp;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
public class ChatUserVO implements Serializable {
    private static final long serialVersionUID = -3552159949955013971L;
    /**
     * 用户uid
     */
    private String uid;

    /**
     * 账号
     */
    private String username;
    /**
     * 头像
     */
    private String avatarUrl;
    /**
     * 昵称
     */
    private String nickname;

    /**
     * 个人简介
     */
    private String profile;
    /**
     * 性别
     */
    private Integer gender;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 角色
     */
    private String role;

    /**
     * 状态：0未激活，1已激活
     */
    private Integer status;    //账号状态：0未激活——> 1已激活

    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;

    /**
     * 和当前用户的关系ID
     */
    private String relId;

}
